import request from '~/utils/resquest'

//  开关灯任务列表
export const hardwareListGet = <T>(params: T) =>
  request({
    url: '/api/gxsaas-monitor/task/hardware/list',
    method: 'get',
    params
  })

//  开关灯任务列表-删除
export const hardwareRemovePost = <T>(params: T) =>
  request({
    url: '/api/gxsaas-monitor/task/hardware/remove',
    method: 'post',
    params
  })

//  开关灯任务列表-新增
export const hardwareAddPost = <T>(data: T) =>
  request({
    url: '/api/gxsaas-monitor/task/hardware/add',
    method: 'post',
    data
  })

//  开关灯任务列表-修改
export const hardwareUpdatePost = <T>(data: T) =>
  request({
    url: '/api/gxsaas-monitor/task/hardware/update',
    method: 'post',
    data
  })

//  开关灯任务列表-详情
export const hardwareViewGet = <T>(params: T) =>
  request({
    url: '/api/gxsaas-monitor/task/hardware/view',
    method: 'get',
    params
  })

//  任务组
export const getTaskGroupBoxListGet = <T>(params: T) =>
  request({
    url: '/api/gxsaas-monitor/task/taskgroup/getTaskGroupBoxList',
    method: 'get',
    params
  })

//  方案号
export const getTaskPnGet = <T>(params: T) =>
  request({
    url: '/api/gxsaas-monitor/task/hardware/getTaskPn',
    method: 'get',
    params
  })

//  周任务模式
export const getWeekSunsierGet = <T>(params: T) =>
  request({
    url: '/api/gxsaas-monitor/task/hardware/getWeekSunsier',
    method: 'get',
    params
  })
